<?
// The class built by the factory method
class ArticlePrototype {
    var $title;
    var $author;
    var $date; // Unix timestamp
    var $body;
    function ArticlePrototype($data) {
	    print_r($data);
        $this->title = $data->title;
		$this->description = $data->description;
        $this->author = $data->author;
        $this->date = $data->date;
        $this->body = $data->body;
    }
 
    function title() {
        return htmlspecialchars($this->title);
    }
 	
	function description() {
        return htmlspecialchars($this->description);
    }
		 
    function author() {
        return htmlspecialchars($this->author);
    }
 
    function date() {
        return date('F j, Y',$this->date);
    }
 
    function body() {
        return strip_tags($this->body, '<a><b><i><u><blockquote>');
    }
}
?>